package com.bountytask.service;

import com.bountytask.entity.Task;
import com.bountytask.entity.UserTask;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

public interface UserAndTaskService {

    public List<Task> findTaskByStatus(long userId, int role, int status);

    public int updateForSubmit(long userId,long taskId);

    public int confirmTask(long userId,long taskId);

    public int offlineTask(long userId,long taskId);

    public List<UserTask> getUserTaskId(long taskid);

    public int getOneStatus(long userid,long taskid);

    public HashMap<Long,List<Long>> getAllExecutor(List<Long> taskIds);

    public long getPoster(long taskId);
}
